package net.neptech.repository;

import net.neptech.model.schedule.ScheShift;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author HuangZhengmin
 * @desc
 * @Date 2025/8/13 15:34
 * @Version 1.0
 */
@Repository
public interface ScheShiftRepository extends JpaRepository<ScheShift,Long> {

  Page<ScheShift> findByShiftNameContainingAndDeptIdAndStatus(
          String shiftName,
          Long deptId,
          Integer status, Pageable pageable);

  List<ScheShift> findByDeptIdAndStatus(Long deptId, Integer status);
}
